package com.arpa.wms.domain.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.data.annotation.Id;

import java.math.BigDecimal;

/**
 * <p>
 * 商品单位换算
 * </p>
 *
 * @author LEO
 * @since 2020-08-03
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@ApiModel(value="GoodsUnitConversion对象", description="商品单位换算")
@TableName("base_goods_unit_conversion")
public class GoodsUnitConversion extends BasicEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(hidden = true,value = "数据标识")
    @TableField("code")
    @Id
    private String code;

    @ApiModelProperty(hidden = true,value = "商品标识")
    @TableField("goods_code")
    private String goodsCode;

    @ApiModelProperty(value = "所属机构")
    @TableField("group_code")
    private String groupCode;

    @ApiModelProperty(value = "单位标识")
    @TableField("unit_code")
    private String unitCode;

    @ApiModelProperty(value = "单位业务编码")
    @TableField("unit_num")
    private String unitNum;

    @ApiModelProperty(value = "单位名称")
    @TableField("unit_name")
    private String unitName;

    @ApiModelProperty(value = "件装量")
    @TableField("quantity")
    private BigDecimal quantity;

    @ApiModelProperty(value = "长,默认cm,和奇门保持一致")
    @TableField("length")
    private BigDecimal length;

    @ApiModelProperty(value = "宽，默认cm,和奇门保持一致")
    @TableField("width")
    private BigDecimal width;

    @ApiModelProperty(value = "高，默认cm,和奇门保持一致")
    @TableField("height")
    private BigDecimal height;

    @ApiModelProperty(value = "重量，默认KG,和奇门保持一致")
    @TableField("weight")
    private BigDecimal weight;

    @ApiModelProperty(value = "体积，默认L(升),和奇门保持一致")
    @TableField("volume")
    private BigDecimal volume;

    @ApiModelProperty(value = "备注")
    @TableField("remarks")
    private String remarks;

    @ApiModelProperty(hidden = true,value = "状态")
    @TableField("status")
    private String status;

    @ApiModelProperty(value = "单位标识，1-基本单位，0-非基本单位")
    @TableField("flag")
    private Integer flag;


}
